import { request } from "@/common/request";
// +---------------------
// | 报表
// +---------------------

/**
 * 营收报表
 * @param {*} data
 * @returns
 */
export function revenueReport(data: any) {
  return request({
    url: `/kingon-service-order/kingon-warehousesupplier/buffetOrder/revenueReport`,
    method: "get",
    data,
  });
}

/**
 * 营收报表-固定模式订单统计
 * @param {*} data
 * @returns
 */
export function quotaOrderRevenueReport(data: any) {
  return request({
    url: `/kingon-service-order/kingon-warehousesupplier/buffetOrder/quotaOrderRevenueReport`,
    method: "get",
    data,
  });
}

/**
 * 打印数据预览
 */
export function revenueReportPreview(data: any) {
  return request({
    url: `/kingon-service-order/kingon-warehousesupplier/buffetOrder/revenueReportPreview`,
    method: "get",
    data,
  });
}
